package jzq.spring.official.ioc;

import org.springframework.beans.factory.annotation.Autowired;

public class UserServiceImpl implements UserService{

    private UserMapper userMapper;

    private DeptMapper deptMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public void setDeptMapper(DeptMapper deptMapper) {
        this.deptMapper = deptMapper;
    }

    @Override
    public UserEntity getUserById() {
        return userMapper.getUser();
    }
}
